

cc.Class({
    extends: cc.Component,

    properties: {

       kindSpriteArray:[cc.SpriteFrame]
   
    },



  init(kindNumber){

    switch(kindNumber)
    {

    case 0:
    this.node.getComponent(cc.Sprite).spriteFrame=this.kindSpriteArray[kindNumber]
    break;

    case 1:
    this.node.getComponent(cc.Sprite).spriteFrame=this.kindSpriteArray[kindNumber]
    break;

    case 2:
    this.node.getComponent(cc.Sprite).spriteFrame=this.kindSpriteArray[kindNumber]
    break;

    case 3:

    this.node.getComponent(cc.Sprite).spriteFrame=this.kindSpriteArray[kindNumber]
 
    break;

    default:

    }
       
         

  },

    // onLoad () {},

    start () {

    },


});
